from django.urls import path
from carts.views import AddCart, GetCart, UpdateCartNum, UpdateCartStatus, UpdateAllStatus, DeleteCartView

urlpatterns = [
    # 加入购物车
    path("user/addCarts/", AddCart.as_view()),
    # 获取购物车数据
    path("user/getShoppingCart/", GetCart.as_view()),
    # 更新购物车商品数量
    path("user/updateShoppingCart/", UpdateCartNum.as_view()),
    # 更新购物车勾选状态   单选与取消单选
    path("user/updateShoppingCartStatus/", UpdateCartStatus.as_view()),
    # 更新购物车商品勾选状态   全选  与 取消全选
    path("user/updateShoppingCartAllStatus/", UpdateAllStatus.as_view()),
    # 删除购物车数据
    path("user/deleteShoppingCart/", DeleteCartView.as_view()),
]
